package com.example.assignment01_javaee.Dao;

import com.example.assignment01_javaee.Entity.Order;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface OrderDao {
    //查询所有的order
    List<Order> getAllOrders();

    //根据order id查找
    Order getOrderById(int orderId);

    //增加order
    void createOrder(Order order);

    //更改order数据
    void updateOrder(Map map);

    //根据order id删除
    void deleteOrder(int orderId);
}
